﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InductBase;
using SharpBolt.Graphics;
using SharpBolt.Sound;

namespace TestGame.Logic
{
    class Chip: ITransformable
    {
        public enum ChipType { Ball = 1, Gift=2, Key=3, Joker=4, Bonus=5 }
        public ChipType Type;
        public Vec2i Position;

        public bool isMoved = false;
        public GraphicInstance Graphic;
        public Transformation Transformation { get; set; }

        public SoundSource blink;

        public Chip()
        {
            blink = SoundSource.LoadSoundSource("sound/jump.wav");
        }

        public event EventHandler Highlight;
        public event EventHandler UnHighlight;

        public void OnHighlight()
        {
            if (Highlight != null)
            {
                Highlight(this, EventArgs.Empty);
            }
        }

        public void OnUnHighlight()
        {
            if (UnHighlight != null)
            {
                UnHighlight(this, EventArgs.Empty);
            }
        }
    }
}
